package org.ceva.training.util.constants;

public class Constant {
	
	public static String USERROLE_HR = "HR" ;
	public static String USERROLE_TRAINER = "Trainer" ;
	public static String USERROLE_STUDENTS = "Students" ;
	
	public static String STATUS_ACTIVE = "Active" ;
	public static String STATUS_INACTIVE = "Inactive" ;
	
	public static Long TRAININGSCHEDULE = Long.valueOf(0);
	public static Long FORTGOTPASSWORD = Long.valueOf(1);
	public static Long INVALIDMAILID = Long.valueOf(2);
	
	public static String ROOT_DIR;
	public static String UPLOADED_FILE_DIR;
	
	static{
		ROOT_DIR =  Constant.class.getResource("Constant.class").getFile();
		ROOT_DIR = ROOT_DIR.replaceAll("%20", " ");
		System.out.println("Rootdir...."+ROOT_DIR);
		ROOT_DIR = ROOT_DIR.substring(0, ROOT_DIR.lastIndexOf("/WEB-INF/classes/org/ceva/training/util/constants/Constant.class"));
		UPLOADED_FILE_DIR = ROOT_DIR+ "/Files/";
		
	}
}
